Questions tagged [specs]

The specs is a software's design and the features specification, you can through it to know the software's specifications. General, the open source code will have specs.

If you want to become a contributor for open source lib, through specs you can know how to design the lib, you can write standard code for it.

108 questions
1
vote
1 answer

How to include HBS template in Jasmine?

I am building a client-side web application in javascript. To build the templates I have used HandleBars.js templates, i.e. .hbs files. I am using Jasmine framework for writing the specs for the JavaScript Code. But I am stuck on loading the .hbs…
devsda
  • 4,112
  • 9
  • 50
  • 87
1
vote
1 answer

Creating a fixture in Specs 2

Sometimes we need to mix in some traits in our test cases. However the following does not work: "abc" should { "def" in new TraitA with TraitAB { // ... } } To make it work, we do the following: trait Fixture extends Before { def…
missingfaktor
  • 90,905
  • 62
  • 285
  • 365
1
vote
1 answer

How to determine the size of OpenGL output buffers (COMPSIZE)

I'm trying to create OpenGL bindings for Node. Because of the sheer size of the OpenGL API, doing this manually is impractical, so I turned to Khronos' OpenGL registry. The files that are provided are easy enough to parse, but there seems to be an…
JPNotADragon
  • 2,050
  • 2
  • 25
  • 31
1
vote
3 answers

How is a csvfile structured/specified?

Can anyone tell me how a csv-file is structured because i need to code a parser.
LostPhysx
  • 3,573
  • 8
  • 43
  • 73
1
vote
2 answers

Is there a place to find how file types are formatted?

I've been looking around the internet to find a place where I could see how certain file types are made so I can understand them better and read them in some applications I want to make. For instance, I can't find a place that describes how a .epub…
Jumbala
  • 4,764
  • 9
  • 45
  • 65
0
votes
0 answers

VCR installation breaks my current specs with WebMock

I'm working on a project which already had a lot of specs using WebMock. Now we decided to try to install VCR and a couple of things are happening. I created a test that runs inside a VCR.use_cassette block Now that test fails if I dont add the…
PedroNeves
  • 110
  • 10
0
votes
1 answer

How to check if element is available on a page, if not, go back and click on next element, if expected element is there then click on that element

I have a task where home page contains twenty ad titles (elements). I want to click on an ad tile that opens the detail page which is working. On detail page I have an element for CHAT button but that is not visible on every detail page. (reason:…
0
votes
0 answers

why am I getting the valueError while sentimental analysis?

I was trying to do the sentimental analysis of amazon product reviews here and i was trying to get the pie chart and bar graph but got this error. not getting the pie chart and bargraph ValueError Traceback (most…
0
votes
1 answer

Mockito different range expectations

I'm using Mockito as a part of Specs in scala code and I've stumbled upon the following task: Given an ArrayBuffer that emulates a chess board (8x8 = 64 cells). If we querying ArrayBuffer for cell that doesn't exist (has number more than 63 or less…
om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
0
votes
0 answers

How to write entity to entity interactions in ECS, namely Specs crate for Rust

I am planning to write some simulations using the Specs crate for Rust. The goal would be to have a few agents and to model their activity. So far working through the specs book example I have not seen a idiomatic way to assess the interaction of…
finnkauski
  • 169
  • 4
0
votes
1 answer

Generate specification plan of specs2 using Maven?

I am having trouble outputting the specification plan of my specs2 specifications using Maven. I have, e.g., class FooTest extends SpecificationWithJUnit{ "foo" should { "bar" in { "bat" must_== "bat" } } And want to have output of, foo…
Larry OBrien
  • 8,484
  • 1
  • 41
  • 75
0
votes
2 answers

Pass array of objects to a data object in Vue specs

I am writing specs for my vue component and have to pass a value to a data object defined in the component I am passing it like this, wrapper.vm.organizations = [{"id":2,"company_name":"google","user_count":0}] But in my component it is getting…
0
votes
1 answer

How can I read from a component and write to a new entity with that same component in Rust SPECS?

I have an entity that is generating other entities. For example, the generator has a position component, and I want the generated entity to have the same position as the generator. In the generating system, it seems that I need to both read and…
Shizz
  • 43
  • 6
0
votes
1 answer

How do I get an associated entity's transform?

Imagine I've crated an entity with transform: let entity = world.create_entity().with(Transform::default()); How do I get its transform later having entity instance? E.g. (pseudo code): let transform = entity.get_associated::();
Aunmag
  • 852
  • 12
  • 17
0
votes
1 answer

Code coverage is not displayed when viewed from generated folder but shown in terminal

Any idea why code coverage in specific percentages is not shown when viewing from generated coverage folder but it is visible in terminal. Please find attachments below for the issue. Thanks in advance.
Sucharitha Suchi
  • 328
  • 3
  • 12