Skip to content

Establish e2e test architecture#87

Merged
gaocegege merged 9 commits intomasterfrom
test/end-to-end
Jun 5, 2017
Merged

Establish e2e test architecture#87
gaocegege merged 9 commits intomasterfrom
test/end-to-end

Conversation

@gaocegege
Copy link
Copy Markdown
Member

@gaocegege gaocegege commented Jun 4, 2017

Ref #10

Signed-off-by: Ce Gao ce.gao@outlook.com

@gaocegege
Copy link
Copy Markdown
Member Author

I have tried the way in https://forum.processing.org/two/discussion/comment/99658/#Comment_99658

It is interesting :think:

processing$triangle(30, 75, 58, 20, 86, 75)
processing$saveFrame("/private/var/folders/wy/h0plj1mx2398n_dvdtqmxfmc0000gn/T/Processing.R1727552989826233336.tmp.png")
processing$exit()

@gaocegege
Copy link
Copy Markdown
Member Author

I got the diff factor is 9.4E-4, although I don't what the number means = =

Signed-off-by: Ce Gao <ce.gao@outlook.com>
@gaocegege
Copy link
Copy Markdown
Member Author

But the test will always fail in travis environment:

    [junit] Testcase: test.e2e.core.primitives2d.TriangleTest:test:	Caused an ERROR
    [junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    [junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    [junit] 	at org.jacoco.ant.CoverageTask.execute(CoverageTask.java:102)
    [junit] 
    [junit] 
    [junit] Running test.e2e.core.primitives2d.TriangleTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec

We couldn't do this test in CI, it is not cool 🤔

gaocegege added 6 commits June 4, 2017 11:31
Signed-off-by: Ce Gao <ce.gao@outlook.com>
Signed-off-by: Ce Gao <ce.gao@outlook.com>
Signed-off-by: Ce Gao <ce.gao@outlook.com>
Signed-off-by: Ce Gao <ce.gao@outlook.com>
Signed-off-by: Ce Gao <ce.gao@outlook.com>
It is built-in

Signed-off-by: Ce Gao <ce.gao@outlook.com>
@gaocegege
Copy link
Copy Markdown
Member Author

Import xvfb to virtualize the framebuffer, now we could run e2e test in Travis CI

Signed-off-by: Ce Gao <ce.gao@outlook.com>
@gaocegege gaocegege changed the title WIP: Add e2e test cases Establish e2e test architecture Jun 5, 2017
Signed-off-by: Ce Gao <ce.gao@outlook.com>
@gaocegege gaocegege merged commit d37dc1f into master Jun 5, 2017
@gaocegege gaocegege deleted the test/end-to-end branch June 5, 2017 07:39
@gaocegege gaocegege modified the milestone: Evaluation 1 Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant