The detentions came days after Canada detained Meng Wanzhou, a senior executive at Chinese tech giant Huawei, on a US warrant. Canada has accused China of conducting "hostage diplomacy". Beijing denies the cases are linked.
Mr Spavor's trial, which took place in the northern Chinese city of Dandong on Friday morning, appeared to have lasted just two hours. It is not unusual for some trials in China to take place swiftly. He appeared in court to face charges of "spying and illegal provision of state secrets abroad", according to a statement from the court, which also said it would set a later date for the verdict. As the trial took place, a group of foreign diplomats gathered outside the court, all of whom were denied entry. Among them was the charge d'affaires of the Canadian embassy in China, Jim Nickel, who told reporters that it was a breach of international law to bar them from the trial.