-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test cases into Processing.R #10
Comments
We need help from the community:
|
comments from the post on Processing Forum:
|
IMO, we should make the boundary clear -- which belongs to Processing.R and which belongs to Processing. In the test cases in Processing.R, we could:
I will try to write some unit test cases. As for integration test or system test, it is a little complex. And I think it could be another GSoC project 🤔 But it has a universal significance for Processing. |
Sounds good to me! FYI here is a recent thread about a Processing(Java) sketch tester: https://forum.processing.org/two/discussion/22869/pixel-test-for-simple-sketches-feedback-request |
@gaocegege -- might want to join the discussion there. |
Yeah, I will take a look tomorrow. 😄 |
I have a glance on the post. It is really an awesome idea. It is more like end-to-end test. And I will join the discussion tomorrow, oh, today, since it is 2:00 am now. |
FMI: There is a issue when uploading the result to codacy in my local env: codacy/codacy-coverage-reporter#56 |
Now I have merge the e2e test code into master: #87 We should find a way to maintain examples, which will be used in web reference site and e2e test. Maybe meta programming, aka code generation will help us: generate test cases and reference pages from examples. |
There is a new config file needed when import a new reference code:
test:
reference: https://processing.org/reference/images/rect_0.png |
Now the documentation and test cases could be generated from examples/reference automatically. 🎉 It is really awesome. The thing we need to do now is to add new items in examples/reference and re-generate test cases and documentation by running the script https://github.com/gaocegege/Processing.R/blob/master/hack/generate-e2e-test.py and https://github.com/Processing-R/Processing.R-docs/blob/master/scripts/generate-reference.sh And I think the idea could be used in Processing, too. |
How exciting!!! I'm happy to see that this approach will work -- and that it will generate both e2e tests and documentation from the same code base of sketch examples and metadata files. I agree, I think that Processing might be interested in this approach for the main project and other modes. |
This looks fine to me!
|
It works for me.
I am not sure which layer we should put the test in. But if Processing does it, it works for Processing.R, too. And I will file a new issue about it and try to do a research.
Yeah, it is helpful. I am not sure if the mode test and the editor test are the same thing, we could put them in one issue. |
Now Processing.R imports the basic test framework (jacoco and junit), and the test coverage output will redirect to codacy.
The text was updated successfully, but these errors were encountered: