Currently, the Makefile build commands (e.g., build-py) calls the testing ($(MAKE) test-py) at the end of the build script. Testing and building should be two separate steps.
Moreover, if you want to make a command that both builds and test (for convenience, but this shouldn't be a primary entrypoint), then Makefiles allow for dependent actions, e.g.:
Currently, the Makefile build commands (e.g.,
build-py
) calls the testing ($(MAKE) test-py
) at the end of the build script. Testing and building should be two separate steps.Moreover, if you want to make a command that both builds and test (for convenience, but this shouldn't be a primary entrypoint), then Makefiles allow for dependent actions, e.g.:
In the above,
build-test
will runbuild-py
andtest-py
before its own commandscc https://github.com/openjournals/joss-reviews/issues/2533