x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Mocking for functional and unit tests

I've looked over the automation guide pages, but I don't see anything about mocking, stubbing, spying, etc. Are these supported when adding tests? Are there any project examples that include tests with mocking?

My testing experience comes from Node.JS and PHP. Is there something else (not part of the UE 4 code) I should use for mocking in C++ that will work with the UE automation? What about when testing blueprints?

Product Version: Not Selected
Tags:
more ▼

asked Dec 16 '14 at 06:20 PM in C++ Programming

avatar image

Hexerei
56 3 5 8

avatar image jimmyt1988 Aug 21 '16 at 05:22 PM

bump - same here. I've been looking at the Unreal Tournment tests and cannot find anything obvious to denote if there is a built in mocking framework. It seems there isn't. I'm going down the route of trying out: https://github.com/eranpeer/FakeIt - I will write instructions on how to implement it if it's possible.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I have the same question! any updates?

more ▼

answered Feb 17 '15 at 10:49 AM

avatar image

Davixe
184 18 21 34

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

bump - same here

more ▼

answered Mar 09 '16 at 10:36 PM

avatar image

xhallix
64 12 17 21

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question