reset password
Author Message
RandomAccess
Posts: 101
Posted 00:01 Sep 06, 2018 |

I'm trying to run a JUnit test, currently using JUnit 5 as that's what was specified on the homework. But when I right click on it, it doesn't have a "run as JUnit Test" option, or any run option other than configurations, on it. Anyone out there might have an idea as to what's going on? I'd really appreciate it.

jhurley
Posts: 207
Posted 06:44 Sep 06, 2018 |

Create the test cases using new-JUnit test case.  Then paste the test in to the file.

garyhuang
Posts: 2
Posted 22:47 Sep 11, 2018 |

I can't run a JUnit test neither. It pops up a window saying "No tests found with test runner 'JUnit 5' ". Anyone knows how to fix it? Appreciate any help.

jhurley
Posts: 207
Posted 11:43 Sep 12, 2018 |

Use build path/ configure build path/ libraries to tmake sure JUnit 5 is on the build path for the project.  If you don't see it, use "add library" and follow the prompts.