Been using Cloud9 for a few months now. Haven’t used sublime or Eclipse since
I have a minor issue with the test runner - not sure if this is a settings thing, or a bug.
When you save an apex class, Cloud9 detects which tests should be re-run and runs them. This is great.
The issue I’m having is that quite often, the test classes are fired before the save is complete. On less complex orgs, this means that the tests essentially run against the old version of the file.
It may because I use TDD that I’m the only one coming across this issue, because I regularly write failing tests and then expect them to pass when I hit save.
I’m quite often finding myself doing this:
- Update some code
- Hit save
- Before save completes, tests run on old code base (before I had fixed the code for the test to pass)
- Twiddle my thumbs while the tests run
- Test Fails
- Manually run the test (without any further changes). Because the apex class is now synced, the tests pass
Is it possible to delay the test running until after the files have definitely synced?
I’ve also noticed that the tests execute even if the file doesn’t save properly (such as if there’s a syntax error).
The slightly annoying workflow described above has led to me disable the auto test runner. This makes me sad, because it is actually one of my favourite features.