sufuf3 / ST2017-hw1-gtest

NCTU Software Testing Class HW1 - google test with triangle, commission, nextdate problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ST2017-hw1-gtest

Set the Google test on Ubuntu

  1. cd ~/
  2. wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
  3. tar zxvf release-1.8.0.tar.gz
  4. mkdir ~/ST2017-hw1-gtest
  5. cd ~/ST2017-hw1-gtest
  6. cp -r ~/googletest-release-1.8.0/googletest ~/ST2017-hw1-gtest/gtest
  7. cd ~/ST2017-hw1-gtest/gtest/make
  8. make
  9. mv gtest_main.a libgtest.a

Add hw floder

  1. mkdir ~/ST2017-hw1-gtest/[hw]
  2. cd ~/ST2017-hw1-gtest/[hw]
  3. Add files
  4. g++ triangle.cpp test.cpp -I ../gtest/include -L ../gtest/make -lgtest -lpthread -o test
  5. ./test

list

Triangle problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing

NextDate problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing

Commission problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing

About

NCTU Software Testing Class HW1 - google test with triangle, commission, nextdate problems


Languages

Language:C++ 96.5%Language:Makefile 1.3%Language:CMake 1.1%Language:C 0.8%Language:Objective-C 0.3%