Commit Graph

7 Commits

Author SHA1 Message Date
Matan Kushner
8239fbd12b
Refactor integration tests (#71)
- Create subcommands to be able to print modules independently
	- `starship prompt` will print the full prompt
	- `starship module <MODULE_NAME>` will print a specific module
		e.g. `starship module python`
	- Added `--path` flag to print the prompt or modules without being in a specific directory
	- Added `--status` flag to provide the status of the last command, instead of requiring it as an argument
- Refactored integration tests to be end-to-end tests, since there was no way in integration tests to set the environment variables for a specific command, which was required for the `username` module
- Moved e2e tests to `tests/testsuite` to allow for a single binary to be built
	- Tests will build/run faster
	- No more false positives for unused functions
- Added tests for `username`
- Removed codecov + tarpaulin 😢
2019-06-06 13:18:00 +01:00
Matan Kushner
000abfe6df
Use tarpaulin and Codecov for adding code coverage to project (#68) 2019-05-29 22:58:46 +02:00
Matan Kushner
617b278a33
Use starship-test docker image for running integration tests (#70)
* Publish docker image used in testing
* Update integration_test to pull the image and build, using the image as its cache
* Publish the built image after successful test runs on master
2019-05-29 13:27:18 +02:00
John Letey
c95bb60571 Add integration tests for Python segment (#38) 2019-05-13 21:53:26 -06:00
Matan Kushner
0872d524ca
Add docker for integration tests (#37) 2019-04-28 13:34:46 -04:00
Matan Kushner
5980a0a845
Revert "Add docker for integration tests" (#36)
This reverts commit 67d938c3de.
2019-04-28 13:08:49 -04:00
Matan Kushner
67d938c3de
Add docker for integration tests (#26) 2019-04-28 12:38:55 -04:00