forked from nus-cs2103-AY2021S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[49] Setup CI and ensure tests are passing
- Loading branch information
Showing
11 changed files
with
72 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: java | ||
matrix: | ||
include: | ||
- jdk: oraclejdk8 | ||
script: travis_retry ./gradlew clean headless allTests coverage coveralls -i | ||
before_install: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- oracle-java8-installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
src/test/java/guitests/guihandles/HeaderStatusBarHandle.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/java/guitests/guihandles/ResultDisplayHandle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package guitests.guihandles; | ||
|
||
import guitests.GuiRobot; | ||
import javafx.scene.control.TextArea; | ||
import javafx.stage.Stage; | ||
import seedu.address.TestApp; | ||
import seedu.address.controller.ResultDisplay; | ||
|
||
/** | ||
* A handler for the ResultDisplay of the UI | ||
*/ | ||
public class ResultDisplayHandle extends GuiHandle { | ||
|
||
public ResultDisplayHandle(GuiRobot guiRobot, Stage primaryStage) { | ||
super(guiRobot, primaryStage, TestApp.APP_TITLE); | ||
} | ||
|
||
public String getText() { | ||
return getResultDisplay().getText(); | ||
} | ||
|
||
private TextArea getResultDisplay() { | ||
return (TextArea) getNode("#" + ResultDisplay.RESULT_DISPLAY_ID); | ||
} | ||
} |