473,396 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How do I test individual protractor tests in grails?

I was religiously following icodeya's tutorial about incorporating protractor tests in my grails application. It works really well. I was wondering if there is a way for me to make a similar command for testing an individual protractor test file? Like: grails protractor someTest or something? Is that even possible? This is the entire file:


Expand|Select|Wrap|Line Numbers
  1. includeTargets << grailsScript("_GrailsRun")
  2. includeTargets << grailsScript("_GrailsClean")
  3. includeTool << gant.tools.Execute
  4.  
  5. target(default: "Run all protractor tests.") {
  6.  
  7.     depends(clean, configureProxy, checkVersion, parseArguments, compile, packageApp)
  8.  
  9.     runApp()
  10.     println 'Running grails app now...'
  11.  
  12.     def process = "protractor PATH/TO/config-e2e.js".execute()
  13.     process.waitFor()
  14.  
  15.     println process
  16.     println process.exitValue()
  17.     println process.in.text
  18.     println process.err.text
  19.  
  20.     println 'Shutting down the server...'
  21.     stopServer()
  22.  
  23.     execute.shell("grails clean")
  24.     print 'Done with protractor tests...'
  25. }
Dec 13 '14 #1
0 1118

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ben Finney | last post by:
Howdy all, Summary: I'm looking for idioms in unit tests for factoring out repetitive iteration over test data. I explain my current practice, and why it's unsatisfactory. When following...
5
by: Little | last post by:
I have this program and I need to work on the test portion, which tests if a Val is in the list. It returns false no matter what could you look at the part and see what might need to be done to fix...
1
by: Viviana Vc | last post by:
Hi all, I have "Visual Studio Team Suite" subscription and now I started to play with Visual Studio 2005 for creating Test Projects. The thing I am interested in is the "unit test". I tried...
2
by: j | last post by:
I've used NUnit before, but I've never had this problem. I am trying to test a web service. I've written my tests, decorated the fixture, and the tests and everything compiles, but when I load...
7
by: Steven Bethard | last post by:
How do I get distutils to include my testing module in just the "sdist" distribution? My current call to setup() looks like:: distutils.core.setup( ... py_modules=, ) If change this to::
9
by: tomasio | last post by:
I just want to see, if i can read my own posts in this group. please ignore it.
1
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I'm using Visual Studio 2005 Team Edition for Software Developers. I've created new a test project and tests using the wizard under Test -New Test... That seemed to work. I checked in my new...
2
by: Simon Shaw | last post by:
I am that rare point in a developers career where I am starting a new web based project and I have a 4-8 week slot to train myself in the most appropriate technology for this task. As a non-web...
0
by: yacrumb | last post by:
Hello all, I am used to work with NUnit where I can very easily separate slow tests from fast tests. I simply create two projects: AcceptanceTests and UnitTests. If I only want to execute...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.